package com.tengol.demo.design.pattern.structural.flyweight.demo1;

/**
 * ConcreteFlyweight
 *
 * @author dongrui
 * @date 2019/03/07
 */
public class ConcreteFlyweight extends Flyweight{
    //接受外部状态
    public ConcreteFlyweight(String extrinsic) {
        super(extrinsic);
    }
    //根据外部状态进行逻辑处理
    @Override
    public void operate() {
        System.out.println("ConcreteFlyweight : " + super.extrinsic);
    }
}
